package com.balabala.goods.api;

import com.balabala.goods.pojo.Sku;
import com.balabala.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author 何涛
 * @Date: 2023/05/08/ 11:06
 * @description
 */
@FeignClient(value = "gym-goods-service",contextId = "skuFeign")
public interface SkuFeignClient {
    /**
     * 根据skuId 获取sku信息
     * @param id
     * @return
     */
    @GetMapping("/admin/sku/{id}")
    Result<Sku> getSkuById(@PathVariable Long id);
}
